package nc;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Qhw2 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        int[] nums = new int[num];
        for (int i = 0; i < num; i++) {
            nums[i] = scanner.nextInt();
        }
        Arrays.sort(nums);
        Set<Integer> hasCountNum = new HashSet<>();
        for (int i : nums) {
            if (!hasCountNum.contains(i)) {
                System.out.println(i);
            }
            hasCountNum.add(i);
        }
    }


}
